<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span class="hs-pragma">{-# LANGUAGE NoImplicitPrelude #-}</span><span>
</span><span id="line-2"></span><span>
</span><span id="line-3"></span><span class="hs-comment">-- | Things common to all file locking implementations.</span><span>
</span><span id="line-4"></span><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">GHC.IO.Handle.Lock.Common</span><span>
</span><span id="line-5"></span><span>  </span><span class="hs-special">(</span><span> </span><span class="annot"><a href="GHC.IO.Handle.Lock.Common.html#FileLockingNotSupported"><span class="hs-identifier">FileLockingNotSupported</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span>
</span><span id="line-6"></span><span>  </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.IO.Handle.Lock.Common.html#LockMode"><span class="hs-identifier">LockMode</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span>
</span><span id="line-7"></span><span>  </span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-8"></span><span>
</span><span id="line-9"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Exception.html"><span class="hs-identifier">GHC.Exception</span></a></span><span>
</span><span id="line-10"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Show.html"><span class="hs-identifier">GHC.Show</span></a></span><span>
</span><span id="line-11"></span><span>
</span><span id="line-12"></span><span class="hs-comment">-- | Exception thrown by 'hLock' on non-Windows platforms that don't support</span><span>
</span><span id="line-13"></span><span class="hs-comment">-- 'flock'.</span><span>
</span><span id="line-14"></span><span class="hs-keyword">data</span><span> </span><span id="FileLockingNotSupported"><span class="annot"><a href="GHC.IO.Handle.Lock.Common.html#FileLockingNotSupported"><span class="hs-identifier hs-var">FileLockingNotSupported</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="FileLockingNotSupported"><span class="annot"><a href="GHC.IO.Handle.Lock.Common.html#FileLockingNotSupported"><span class="hs-identifier hs-var">FileLockingNotSupported</span></a></span></span><span>
</span><span id="line-15"></span><span>  </span><span class="hs-keyword">deriving</span><span> </span><span id="local-6989586621679558294"><span id="local-6989586621679558296"><span id="local-6989586621679558298"><span class="annot"><span class="annottext">Int -&gt; FileLockingNotSupported -&gt; ShowS
[FileLockingNotSupported] -&gt; ShowS
FileLockingNotSupported -&gt; String
(Int -&gt; FileLockingNotSupported -&gt; ShowS)
-&gt; (FileLockingNotSupported -&gt; String)
-&gt; ([FileLockingNotSupported] -&gt; ShowS)
-&gt; Show FileLockingNotSupported
forall a.
(Int -&gt; a -&gt; ShowS) -&gt; (a -&gt; String) -&gt; ([a] -&gt; ShowS) -&gt; Show a
showList :: [FileLockingNotSupported] -&gt; ShowS
$cshowList :: [FileLockingNotSupported] -&gt; ShowS
show :: FileLockingNotSupported -&gt; String
$cshow :: FileLockingNotSupported -&gt; String
showsPrec :: Int -&gt; FileLockingNotSupported -&gt; ShowS
$cshowsPrec :: Int -&gt; FileLockingNotSupported -&gt; ShowS
</span><a href="GHC.Show.html#Show"><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var">Show</span></a></span></span></span></span><span> </span><span class="hs-comment">-- ^ @since 4.10.0.0</span><span>
</span><span id="line-16"></span><span>
</span><span id="line-17"></span><span class="hs-comment">-- ^ @since 4.10.0.0</span><span>
</span><span id="line-18"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679558283"><span id="local-6989586621679558285"><span id="local-6989586621679558287"><span class="annot"><a href="GHC.Exception.Type.html#Exception"><span class="hs-identifier hs-type">Exception</span></a></span><span> </span><span class="annot"><a href="GHC.IO.Handle.Lock.Common.html#FileLockingNotSupported"><span class="hs-identifier hs-type">FileLockingNotSupported</span></a></span></span></span></span><span>
</span><span id="line-19"></span><span>
</span><span id="line-20"></span><span class="hs-comment">-- | Indicates a mode in which a file should be locked.</span><span>
</span><span id="line-21"></span><span class="hs-keyword">data</span><span> </span><span id="LockMode"><span class="annot"><a href="GHC.IO.Handle.Lock.Common.html#LockMode"><span class="hs-identifier hs-var">LockMode</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="SharedLock"><span class="annot"><a href="GHC.IO.Handle.Lock.Common.html#SharedLock"><span class="hs-identifier hs-var">SharedLock</span></a></span></span><span> </span><span class="hs-glyph">|</span><span> </span><span id="ExclusiveLock"><span class="annot"><a href="GHC.IO.Handle.Lock.Common.html#ExclusiveLock"><span class="hs-identifier hs-var">ExclusiveLock</span></a></span></span><span>
</span><span id="line-22"></span></pre></body></html>